﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowEdit.aspx.cs" Inherits="Ym.print.ShowEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../js/jquery.form.js" type="text/javascript"></script>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/pagination.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            $("input, textarea").focus(function () { $(this).addClass("focus"); })
            .blur(function () { $(this).removeClass("focus"); });
        })
        function upimg(p, u) {
            $("#form1").ajaxSubmit({
                type: "post",
                url: "Up.ashx?ReFilePath=" + p + "&UpFilePath=" + u,
                //data: "",
                beforeSubmit: function () { },
                success: function (data, textStatus) {
                    if (data.indexOf("UploadPic") > 0) {
                        $("#" + p).val(data);
                    }
                },
                complete: function () { },
                error: function () { }
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table width="95%" cellpadding="0" cellspacing="1" border="0" class="msgtable">
	        <tr>
		        <th colspan="2">
                    <span id="ne" runat="server">dd</span>
                    <div style="float:right;width:80px"><a href="javascript:history.back();">返回列表</a></div>
                </th>
	        </tr>
	        <tr>
		        <td class="right">印品名称：</td>
		        <td class="left">
                    <input id="Text1" class="txt" type="text" runat="server" />
                </td>
	        </tr>
            <tr>
		        <td class="right">印品图片：</td>
		        <td class="left">
                    <asp:TextBox ID="pUrl" CssClass="txtlng" runat="server"></asp:TextBox>
                    <asp:FileUpload ID="file1" CssClass="input" Width="65" onchange="upimg('pUrl', 'file1');" runat="server" />
                </td>
	        </tr>
            <tr>
                <td colspan="2" class="save">
                    <asp:Button ID="save" runat="server" CssClass="btn" Text="保存" onclick="save_Click" />
                    <input id="reset" type="reset" class="btn" value="重置" />
                    <input id="Hidden1" type="hidden" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
